package com.example.aop.controller;

import com.example.aop.service.IndexService;
import com.example.aop.service.impl.IndexServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xxg
 */
@RestController
public class IndexController {

    @Autowired
    private IndexService indexService;


    @GetMapping("")
    public String index(@RequestParam("arg") String arg) {
        return  indexService.testAspect(arg);
    }
}
